<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>四六级在线报名系统-管理员页面</title>
	<link rel="stylesheet" href="layui/css/layui.css" media="all"></link>
	<script src="layui/layui.js"></script>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo">四六级在线报名系统</div>
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
      <li class="layui-nav-item"><a href="main"  target="main">用户管理</a></li>
      <li class="layui-nav-item"><a href="exam" target="main">考试信息</a></li>
      <li class="layui-nav-item"><a href="examinee" target="main" >报名信息</a></li>
  
    </ul>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item">
        <a href="javascript:;">
          <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
         	管理员
        </a>
        <dl class="layui-nav-child">
          <dd><a href="">基本资料</a></dd>
          <dd><a href="">安全设置</a></dd>
        </dl>
      </li>
      <li class="layui-nav-item"><a  onclick="logout()">退了</a></li>
    </ul>
  </div>
  
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree"  lay-filter="test">
        <li class="layui-nav-item layui-nav-itemed">
          <a class="" href="javascript:;">用户管理</a>
          <dl class="layui-nav-child">
            <dd class="layui-this"><a href="main"  target="main">普通用户</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;">考试信息</a>
          <dl class="layui-nav-child">
            <dd><a href="exam"  target="main">考试信息</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item"><a href="examinee" target="main" >报名信息</a></li>
        <li class="layui-nav-item"><a href="user" target="main" >学籍信息</a></li>
      </ul>
    </div>
  </div>
  <div class="layui-body">
  <iframe src="main"  height="100%" width="100%"name="main"></iframe>
  </div>
  <div class="layui-footer">
    copyright oceanao.top
  </div>
</div>
<script>
function logout()
{
	
	 localStorage.removeItem('admin');
	 window.location.href="tologin";
}
data=localStorage.getItem("admin");
data=JSON.parse(data);
if(data!=null)
{
	console.log("Welcome!")
}
else{
	window.location.href="tologin";
}
//JavaScript代码区域
layui.use('element', function(){
  var element = layui.element;
  
});
</script>
</body>
</html>